package com.wx.sys.service;

import com.wx.sys.model.SysUser;
import com.wx.sys.model.biz.SysRescView;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created by king-pc on 2018/12/3.
 */
@RequestMapping("/userApi")
@FeignClient(value = "wx-provider-sys")
public interface SysUserFeignApi {

    /**
     * 查询用户信息
     * @param account
     * @return
     */
    @PostMapping("/getUserInfo")
    public SysUser getUserInfo(@RequestParam("account") String account);

}
